
$(function () {
    $(".nr>.img").mouseenter(function (e) {
        // console.log($(e.currentTarget).children('img').attr('src'))
        imgsrc = $(e.currentTarget).children('img').attr('src')
        var suffixw = imgsrc.substr(imgsrc.lastIndexOf("."));
        var suffixt = imgsrc.substring(0, imgsrc.lastIndexOf("."));
        // imgsrc = imgsrc - suffix
        imgsrc = suffixt + "(2)" + suffixw
        $(e.currentTarget).children('img').attr('src', imgsrc)
        // console.log(imgsrc)
    });
    $(".nr>.img").mouseout(function (e) {
        imgsrc = $(e.currentTarget).children('img').attr('src')
        var suffixw = imgsrc.substr(imgsrc.lastIndexOf("."));
        var suffixt = imgsrc.substring(0, imgsrc.lastIndexOf(".") - 3);
        imgsrc = suffixt + suffixw
        $(e.currentTarget).children('img').attr('src', imgsrc)
        // console.log(suffixt)
    });
})

